from argparse import ArgumentParser
############################## User Settings #############################################

class Settings():
    def __init__(self):
        self.use_classifier = True  #切换皮肤分类器 Toggles skin classifier
        self.use_flow = False  # 切换PPG检测(Mixed_motion only) Toggles PPG detection
        # with Lukas Kanade optical flow
        self.show_cropped = True  # 显示应用程序上处理过的帧 Shows the processed frame on the aplication instead of the regular one.
        self.sub_roi = []  # [.35,.65,.05,.15] # 如果不是皮肤分类器，应该使用前额估计 If instead of skin classifier, forhead estimation should be used
        # set to [.35,.65,.05,.15]
        self.use_resampling = True  #设置网络摄像头  Set to true with webcam

parser = ArgumentParser()
parser.add_argument('--fs',type=int,default=30,help='sampling rate of camera') #摄像机采样率
#fft的数据长度值越大，处理速度越慢，精度越高
parser.add_argument('--fftlength',type=int,default=300,help='data length of fft,the larger the value, the slower the processing speed and the higher the accuracy')
parser.add_argument('--freq',default=[40,200],help='Cutoff frequency of bandpass filter')#带通滤波器的截止频率
parser.add_argument('--source',default='webcam',help='source of data') #视频数据来源

args = parser.parse_args()